﻿<sdk:Page 
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
        xmlns:local="clr-namespace:RIATestCollection"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation"
        xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk" 
        xmlns:toolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit"
        x:Class="RIATestCollection.Home"
    d:DataContext="{d:DesignData Source=Sample.xaml}"
        mc:Ignorable="d" 
        d:DesignWidth="640" d:DesignHeight="480" 
        Loaded="Page_Loaded">
    <sdk:Page.Resources>
        <local:ContactsViewModel x:Key="ContactsVM"/>
    </sdk:Page.Resources>
    <sdk:Page.DataContext>
    	<StaticResource ResourceKey="ContactsVM"/>
    </sdk:Page.DataContext>

	<sdk:Page.Style>
		<StaticResource ResourceKey="PageStyle"/>
	</sdk:Page.Style>

    <Grid x:Name="LayoutRoot">
    <ScrollViewer x:Name="PageScrollViewer" Style="{StaticResource PageScrollViewerStyle}">
      <StackPanel x:Name="ContentStackPanel" Style="{StaticResource ContentStackPanelStyle}">
        <TextBlock x:Name="HeaderText" Style="{StaticResource HeaderTextStyle}" 
                           Text="{Binding Strings.HomePageTitle, Source={StaticResource ApplicationResources}}"/>
                <toolkit:DataForm x:Name="dataForm1" Height="222" Width="542" ItemsSource="{Binding Path=CustomerView}" />
                <sdk:DataGrid AutoGenerateColumns="True" Height="196" Name="dataGrid1" Width="498" ItemsSource="{Binding Path=CustomerView}" />
            </StackPanel>

    </ScrollViewer>
  </Grid>

</sdk:Page>